package com.wkbb.sports.dto;

import com.wkbb.common.constants.ErrorCode;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author 大数据中心 统计
 */
@Data
public class LekangResultDto<T> implements Serializable {

    private String resCode;
    private String resmsg;

    @ApiModelProperty(value = "返回的数据对象")
    private T data; // 返回的数据对象

    public LekangResultDto(boolean success) {
        if(success){
            resCode = "true";
            resmsg = "操作成功";
        }else{
            resCode = "false";
            resmsg = "操作失败";
        }
    }

}